<!DOCTYPE html>
<!-- saved from url=(0038)http://www.nubia.com/memberaddress.php -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>收货地址——努比亚nubia智能手机官网</title>

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta property="wb:webmaster" content="6bdcc5762d77ce58">
<meta property="qc:admins" content="4267477257665211636">
<meta name="charset" content="utf-8">
<meta name="wb:webmaster" content="6bdcc5762d77ce58">
<meta name="keywords" content="智能手机,拍照手机,努比亚手机,nubia Z9 Max,nubia Z9 mini,nubia Z7,nubia Z7 Max,nubia Z7 mini,nubia X6">
<meta name="description" content="作为全球高端智能手机提供商，努比亚官网为您提供nubia Z9 Max,nubia Z9 mini,nubia Z7, nubia Z7 Max, nubia Z7 mini, nubia X6等产品介绍及在线购买。">
<link rel="shortcut icon" href="http://static.nubia.cn/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="{{ asset('/css/style_0506.css') }}">
<link rel="stylesheet" href="{{ asset('/css/base.css') }}">
<link rel="stylesheet" href="{{ asset('/css/nb-media.css') }}">
<link rel="stylesheet" href="{{ asset('/css/services.css') }}">
<link rel="stylesheet" href="{{ asset('/css/member.css') }}">

</head><style type="text/css" id="72115225"></style>

    <body>
    <style>
    .nb-users-bar.logged:hover .nb-user-menu{display:block;}
</style>
<div id="nb-h-wrap">
    <div id="nb-header" class="cl">
        <a class="nubia-logo" href="http://www.nubia.com/" alt="努比亚官网" title="nubia 努比亚"></a>
        <a class="nubia-menu-btn" href="http://www.nubia.com/memberaddress.php#"></a>
       <ul class="nubia-navigator cl left">
                    <li><a href="{{ asset('/home/shopindex') }}">商城</a></li>
                    <li><a href="http://www.nubia.com/nubiaphone.php">产品</a></li>
                    <li><a href="http://app.nubia.cn/">应用</a></li>
                    <li><a href="http://www.nubia.com/service.php">服务</a>   </li>
                    <li><a href="http://www.nubia.com/store.php">体验店</a></li>
                    <li><a href="http://bbs.nubia.cn/">社区</a></li>
                </ul>
                <ul class="nubia-navigator cl right">
                    <li class="nb-users-bar">
                     @if(session('master'))
                        <b class="user-ico"></b>
                        {{ session('master') -> username }}<a href="{{ url('/home/userinfo') }}">个人中心</a><a href="{{ url('/home/cart/index') }}">购物车</a><a href="{{ url('/home/login/logout') }}">退出</a>

                       <!--  {{ session('master') -> username }}

                        <a href="http://www.nubia.com/cn/#" id="username" style="display:block"></a>
                        <dl id="info" class="nb-user-menu" style="display: block; opacity: 50;">
                        
                            <em></em>
                            <dd><a href="http://www.nubia.com/member.php">个人中心</a></dd>
                            <dd><a href="http://www.nubia.com/memberorder.php?a=orderList">我的订单</a></dd>
                            <dd><a href="http://www.nubia.com/memberbonus.php">我的优惠券</a></dd>
                            <dd><a href="http://www.nubia.com/memberfavorite.php">我的收藏</a></dd>
                            <dd><a href="http://www.nubia.com/memberbook.php">我的预约</a></dd>
                            <dd><a href="http://www.nubia.com/memberaddress.php">收货地址</a></dd>
                            <dd><a href="http://www.nubia.com/profile.php?a=logout&amp;url=%2Findex.html">退出</a></dd>
                        </dl> -->
                    @elseif(!session('master'))
                        <a href="{{ url('/home/register') }}" class="register">注册</a>
                        <a href="{{ url('/home/login') }}" class="login">登录</a>
                    @endif
                    </li>
                </ul>
    </div>
</div>
<div id="tempdom" style="height:60px;width:100%"></div>

<div class="services-con">
        <div class="nav" style="margin-bottom: 20px;">
            <a target="_blank" href="http://www.nubia.com/index.php">首页</a>
            &nbsp;/&nbsp;
            <a href="http://www.nubia.com/member.php">个人中心</a>
            &nbsp;/&nbsp;
            <a href="javascript:void(0)" style="cursor:default">收货地址</a>
        </div>
        <div class="sideNav" id="memberCon">
    <ul>
        <li>
            <p class="membertitle">订单中心</p>
            <ul class="membersubmenu">
                <li>
                    <a href="{{url('/home/userinfo/order')}}">我的订单</a>
                </li>
                <li>
                    <a href="http://www.nubia.com/recycleorder.php">我的回收订单</a>
                </li>
            </ul>
        </li>
        <li>
            <p class="membertitle">个人中心</p>
            <ul class="membersubmenu">
                <li>
                    <a href="http://www.nubia.com/member.php">信息总览</a>
                </li>
                <li>
                    <a href="http://www.nubia.com/memberbonus.php?a=show">我的优惠劵</a>
                </li>
                <li>
                    <a href="http://www.nubia.com/voucher.php">我的回收代金劵</a>
                </li>
                <li>
                    <a href="http://www.nubia.com/membercredit.php?a=show">我的牛豆</a>
                </li>
                <li class="selected">
                     <a href="{{url('/home/userinfo')}}">收货地址</a>
                </li>
                <li>
                    <a href="http://www.nubia.com/memberfavorite.php">我的收藏</a>
                </li>
                <li>
                    <a href="http://www.nubia.com/memberbook.php">我的预约</a>
                </li>
                <li>
                                        <a href="{{url('/home/info')}}">账户中心</a>
                </li>
            </ul>
        </li>
        <li>
            <p class="membertitle">售后管理</p>
            <ul class="membersubmenu">
                <li>
                    <a href="http://www.nubia.com/memberrepairorder.php">网点预约</a>
                </li>
                <li>
                    <a href="http://www.nubia.com/memberaftersales.php?a=alllists">寄修服务</a>
                </li>
            </ul>
        </li>
    </ul>
</div>  
        <div class="con">
            <div class="address">
             <div class="hd">
             <h2>
    <span class="ico"></span>
              我的收货地址
         </h2>
        </div>
    <div class="listAddress">
   <table border="0" width="100%" cellpadding="0" cellspacing="0">
    <tbody><tr>
    <th width="18%">收货人</th>
   <th width="43%">所在地区</th> <th width="20%">联系方式</th>
   <th width="19%">操作</th>
     </tr>
@if($data)

@foreach($data as $row)
<tr>
                      <td>{{$row -> rec}}</td>
     <td style="vertical-align: middle;line-height: 30px;">
        {{$row -> addr}}
           </td>
<td style="vertical-align: middle;line-height: 30px;">18865501833</td>
@if($row -> status == 0)
<td>  <span style="color: #e8380d;"></span><span>|</span>

<a href="{{url('/home/userinfo/edit')}}/{{$row -> id}}" title="class=&quot;color edit&quot;">编辑</a>
<a href="{{url('/home/userinfo/delete')}}/{{$row -> id}}" title="class=&quot;color edit&quot;">删除</a>
  <span>|</span>
     </td>
@else 
<td>  <span style="color: #e8380d;">默认地址</span><span>|</span>

<a href="{{url('/home/userinfo/edit')}}/{{$row -> id}}" title="class=&quot;color edit&quot;">编辑</a>  
  <span>|</span>
     </td>    
@endif
</tr>  
@endforeach
@else
 <tr>
                      <td></td>
     <td style="vertical-align: middle;line-height: 30px;">
       
           </td>
<td style="vertical-align: middle;line-height: 30px;"></td>
<td>  <span style="color: #e8380d;">默认地址</span><span>|</span>
<a href="http://www.nubia.com/memberaddress.php?a=show&amp;id=809527#edit" title="class=&quot;color edit&quot;">编辑</a>  
  <span>|</span>
     </td>
</tr>  
@endif
    </tbody></table>
     </div>
        <div class="newAddress">
<div class="hd">
<h2>
    <span class="ico"></span>
    新增收货地址                                        </h2>
</div>
<form id="addressForm" action="{{ url('/home/userinfo') }}" method="post">
{{ csrf_field() }}
<ul>
    <li>
        <label>收货人姓名：</label>
        <div class="inputBg">
         <input type="hidden" name="uid" value="{{session('master') -> id}}">
  <input type="text" class="text required msgPos:&#39;consigneeRequired&#39;" id="rec" name="rec" value="">
            <div id="consigneeRequired" class="hit"></div>
        </div>
    </li>
        
     <li>
        <label>收货地址：</label>
        <div class="city">
               
                <input type="text" class="text required msgPos:&#39;addressRequired&#39;" id="address" name="addr" value="">
                    <div id="addressRequired" class="hit"></div>
     </div>
       </li>
                                                                
            <li>
                <label>手机号码：</label>
                <div class="inputBg">
                    <input name="tel" id="mobile" class="text requiredMobile validate-mobilephone:true validate-mobile:true msgPos:&#39;mobileRequired&#39;" value="" type="text"> 
                      <div id="mobileRequired" class="hit"></div>
                </div>
            </li>
            <li>
                <label>设为默认：</label>
                <div>
                    <input name="status" value="1" type="checkbox" style="vertical-align: middle;width: 50px;margin-left: -15px;">
                </div>
            </li>
        </ul>
        <div class="buttons">
            <input type="submit" class="save"  value="新增地址" id="saveBtn">
        </div>  
    </form>
</div>

</div>
</div>
</div>
    
    <div id="nb-footer">
    <div class="nubia-copyright">
        <style>
    .mz_footer-language {
        position:relative;
        cursor:default;
        background:url(http://static.nubia.cn/index/images/footer-btn-icon.jpg) no-repeat scroll 100% 80% transparent;
        display:inline;
        padding-left: 15px;
    }

    .mz_footer-language_menu {
        -moz-box-shadow:0 0 10px #E1E4E8;
        -webkit-box-shadow:0 0 10px #E1E4E8;
        box-shadow:0 0 10px #E1E4E8;
        -moz-border-radius:2px;
        -webkit-border-radius:2px;
        border-radius:2px;
        background-color:#FEFEFE;
        border:solid 1px #E1E4E8;
        display:none;
        overflow:hidden;
        position:absolute;
        left:63px;
        bottom:0;
        width:150px;
        z-index:2000
    }

    .mz_footer-language_menu a {
        display:block;
        position:relative;
        height:40px;
        line-height:40px;
        width:138px;
        margin:0 auto;
        text-decoration:none;
        border-bottom:solid 1px #E4E7E9;
        font-size:14px;
        text-align:left
    }

    .mz_footer-language_menu a i {
        display:inline-block;
        position:absolute;
        top:5px;
        width:21px;
        height:21px;
        margin:5px 15px 0 10px;
        background:url(http://static.nubia.cn/index/images/footer-language.png) no-repeat scroll 0 0 #fff;
    }

    .mz_footer-language_menu a span {
        display:block;
        float:right;
        width:100px;
        cursor:pointer;
        color:#000;
    }

    .mz_footer-language_menu a .en {
        background-position:0 0;
    }
    .mz_footer-language_menu a .es {
        background-position:-22px 0;
    }
    .mz_footer-language_menu a .de {
        background-position:-67px 0;
    }
    .mz_footer-language_menu a .it {
        background-position:-45px 0;
    }
    .mz_footer-language_menu a .de {
        background-position:-67px 0;
    }
    .mz_footer-language_menu a .th {
        background-position:-91px 0;
    }
    .mz_footer-language_menu a .in {
        background-position:-114px 0;
    }
    .mz_footer-language_menu a .ru {
        background-position: -137px 0;
    }
    .mz_footer-language_menu a .vn {
        background-position: -160px 0;
    }
    .mz_footer-language_menu a .ae {
        background-position: -182px 0;
    }
    .mz_footer-language_menu a .sa {
        background-position: -205px 0;
    }
    .mz_footer-language_menu a .cz {
        background-position: -228px 0;
    }
    .mz_footer-language_menu a .sk {
        background-position: -251px 0;
    }
    .mz_footer-language_menu a .us {
        background-position: -274px 0;
    }
    .mz_footer-language_menu a .pl {
        background-position: -297px 0;
    }

    .mz_footer-language_menu .ClobalItem {
        background: #fff;z-index: 10;
    }
    .mz_footer-language_menu .ClobalItem:visited {
        color:#000;
    }
    .nubia-copyright span.nb-footer-func{
        z-index: 9999;
    }
    .nubia-copyright span.nb-footer-func.lowindex{
        z-index: -1;
    }
    .nubia-copyright .nubia-foot-nav .mz_footer-language_menu a{
        padding:0;
        float:left;
        margin-right:4px;
    }
</style>
<noscript id="getsomeinfo" controller="memberaddress" sku="" nid="29806876" action="doAdd" style="width:100%;height:0px;"></noscript>
<div class="nubia-foot-nav">
    <a target="_blank" href="http://www.nubia.com/service.php?sid=6">关于我们</a>|
    <a target="_blank" href="http://www.nubia.com/service.php?sid=7">联系我们</a>|
    <a target="_blank" href="http://www.nubia.com/news.php">新闻中心</a>|
    <a target="_blank" href="http://hr.nubia.com/">加入我们</a>|
    <a target="_blank" href="http://www.nubia.com/edzp8b78c9614.html">合作注册</a>|
    <a target="_blank" href="http://www.nubia.com/gongyi.php">公益</a>|
    <a target="_blank" href="http://www.nubia.com/recycle.php">以旧换新</a>|
    <a href="javascript:void(0);" onclick="showFeedBack();">问题反馈</a>|
    <div class="mz_footer-language">
      <a href="http://www.nubia.com/actitem/5881a96fb8f7622.html" title="简体中文" class="language-link">简体中文</a>
      <div id="globalContainer" class="mz_footer-language_menu" style="width:286px;display: none;">
        <a href="http://www.nubia.com/en" class="ClobalItem"><i class="en"></i><span>Global</span></a>
        <a href="http://www.nubia.com/es" class="ClobalItem"><i class="es"></i><span>Español</span></a>
        <a href="http://www.nubia.com/de" class="ClobalItem"><i class="de"></i><span>Deutschland</span></a>
        <a href="http://www.nubia.com/it" class="ClobalItem"><i class="it"></i><span>Italia</span></a>
        <a href="http://www.nubia.com/in" class="ClobalItem"><i class="in"></i><span>India</span></a> 
        <a href="http://www.nubia.com/th" class="ClobalItem"><i class="th"></i><span>Thailand</span></a>
        <a href="http://www.nubia.com/ru" class="ClobalItem"><i class="ru"></i><span>Россия</span></a>
        <a href="http://www.nubia.com/vn" class="ClobalItem"><i class="vn"></i><span>Vietnam</span></a>    
        <a href="http://www.nubia.com/ae" class="ClobalItem"><i class="ae"></i><span>UAE</span></a>
        <a href="http://www.nubia.com/sa" class="ClobalItem"><i class="sa"></i><span>Saudi Arabia</span></a>
        <a href="http://www.nubia.com/id" class="ClobalItem"><i class="en"></i><span>Indonesia</span></a>
        <a href="http://www.nubia.com/cz" class="ClobalItem"><i class="cz"></i><span>Czech</span></a>
        <a href="http://www.nubia.com/sk" class="ClobalItem"><i class="sk"></i><span>Slovak</span></a>
        <a href="http://www.nubia.com/us" class="ClobalItem"><i class="us"></i><span>United States</span></a>
        <a href="http://www.nubia.com/pl" class="ClobalItem"><i class="pl"></i><span>Poland</span></a>
      </div>
    </div>
</div>

<style type="text/css">
.feedback-main {
    height: 620px;
    padding: 0 48px 48px;
    background-color: #fff
}
.feedback-nav {
    height: 18px;
    padding-top: 30px;
    padding-bottom: 15px;
    width:95%;
    margin: 0 auto;
    border-bottom: 1px solid #e0e0e0
}
.feedback-nav li {
    float: left;
    list-style: none;
    margin: 0;
    font-size: 18px;
    line-height: 1;
    color: #424242;
    margin-left: 10px;
}
.feedback-nav .tab-active {
    color: #ff6700
}
.form-box {
    float: left
}
.form-box .title {
    height: 60px;
    margin: 0;
    line-height: 60px;
    font-weight: normal;
    color: #424242;
    font-size: 16px;
    margin-left: 26px;
}
.form-box .form-section {
    margin-bottom: 12px
}
.form-box .input-textarea {
    width: 600px;
    height: 85px;
    margin-left: 26px;
    margin-top: 15px;
    border-radius: 3px;
    padding: 10px;
    border: 1px solid #9C9C9C;
}
.form-box .input-url {
    width: 600px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.form-box .input-text {
    width: 600px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.captcha-box {
    margin-bottom: 20px
}
.captcha-box .form-section {
    float: left
}
.captcha-box .form-section .input-text {
    width: 120px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.captcha-box .captcha-img {
    float: left
}
.captcha-box .captcha-img img {
    float: left;
    height: 40px;
    margin-right: 10px
}
.captcha-box .captcha-img a {
    float: left;
    height: 40px;
    line-height: 40px
}
.iconfont,.input-label{
    margin-left: 26px;
}
#feedbackType{
    width: 200px;
    padding:10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
#submitQuestion{
    border: 1px solid #ee4a17;
    display: block;
    margin-left: 26px;
    width: 140px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #ee4a17;
    border-radius: 3px;
}
/*遮罩样式开始*/
#feedback_addip_zz { 
    background-color:#000; 
    left:0;
    opacity:0.5;
    position:fixed;
    top:0;
    z-index:10500;
    filter:alpha(opacity=50);
    -moz-opacity:0.5; 
    -khtml-opacity:0.5; 
} 
#feedback-dialog {
    left:50%; 
    margin: -260px 0 0 -350px;
    padding: 1px;
    position: fixed !important;
    top: 50%;
    width: 700px;
    height: 535px;
    z-index: 10501;
    border-radius:10px; 
    display:none; 
    color: #716e5f;
    background-color:#fff;
}

.feedback_dialog_close{
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10000;
    font-size: 30px;
    text-align: center;
    line-height: 30px;
}
/*遮罩样式结束*/
.feedback{
    border-bottom:1px solid #d5d5d5;
    width: 95%;
    margin: 0 auto;
    font-size:20px;
    color: #000;
    padding-bottom: 15px;
}
#errorTip {
    color: red;
    line-height: 41px;
    margin-left: 26px;
    text-indent: 30px;
    margin-bottom:0px;
}
#wordTip {
    margin-left:30px;
}
</style>

<div class="feedback-main" id="feedback-dialog">
    <span class="feedback_dialog_close">×</span>
    <ul class="feedback-nav  clearfix">
        <li>问题反馈</li>
    </ul>
    <div class="tab-container">
        <div class="tab-content clearfix">
            <div class="form-box">
                <h2 class="title">对您给予的帮助和支持，深表感谢！</h2>
                <div class="form-section">
                    <div class="xm-select">
                      <div class="feedbackdropdown">
                          <label for="feedbackType" class="iconfont"></label>
                            <select name="feedbackType" id="feedbackType">
                                
                            </select>
                        </div>
                    </div>
                </div>

                <div class="form-section">
                    <label for="feedbackQuestion" class="input-label">在这里描述您遇到的问题</label>
                    <span id="wordTip">还可以输入<span id="wordLeft">200</span>个字</span>
                    <textarea placeholder="问题描述须大于10小于200个字" name="feedbackQuestion" id="feedbackQuestion" onblur="countWord();" onkeyup="countWord();" class="input-text input-textarea"></textarea>
                </div>
                <div class="form-section">
                    <input placeholder="联系方式：手机、邮箱（选填）" type="text" name="feedbackContact" id="feedbackContact" class="input-text">
                </div>
                <div class="form-section">
                    <input placeholder="页面链接（选填）" type="text" name="feedbackQuestionUrl" id="feedbackQuestionUrl" class="input-text input-url">
                </div>
                <div id="captchaBox" class="form-section captcha-box">
                    <div class="form-section">
                        <input placeholder="验证码" type="text" autocomplete="off" data-authurl="" name="captcha_code" id="captcha_code" class="input-text">
                    </div>
                    <div class="captcha-img">
                        <img id="feedbackCaptchaImg" alt="" src="http://www.nubia.com/memberaddress.php">
                        <a id="captchaChange" href="javascript:void(0);" onclick="changeCaptcha();">看不清，换一个</a>
                    </div>
                </div>
                <div class="form-section" id="errorTip">

                </div>
                <div style="clear:both"></div>
                <a id="submitQuestion" class="" href="javascript:void(0);">提交问题</a>
                <div style="height:30px"></div>
            </div>
        </div>
    </div>
</div>

<div id="feedback_addip_zz"></div> 

        
        <span class="nb-footer-func">
            <a class="nb-apk-ico" target="_blank" href="http://ui.nubia.cn/app/app/33"></a>
            <a class="nb-cloud-ico" target="_blank" href="http://yun.baidu.com/xcloud/nubia/pan"></a>
            <a class="nb-weibo-ico" target="_blank" href="http://www.weibo.com/p/1006062156294570"></a>
            <a class="nb-weixin-ico" href="javascript:void(0)"></a>
            <a class="nb-service-ico" href="javascript:;" onclick="window.open(&#39;http://livechat1.zte.com.cn/looyu/chat/p.do?c=1&amp;f=60&#39;, &#39;chat&#39;, &#39;height=460,width=690,directories=no,location=no,menubar=no,resizeable=no,status=no,toolbar=no,top=100,left=200&#39;)" title="在线客服"></a>
            <strong class="nb-tel-ico">服务热线：400-700-6600</strong>
            
            <div class="nb-footer-wx-layer">
                <img src="{{asset('/img/nb-weixin-code-figure.jpg')}}">
            </div>
            
        </span>
        
        <p class="nb-footer-info">2012-2017 努比亚 版权所有 粤ICP备10006213号-2 ICP经营许可证编号：<a href="http://www.nubia.com/memberaddress.php#">粤B2-20120688</a> 努比亚技术有限公司</p>
        
    </div>

</div>
<script charset="utf-8" src="./收货地址——努比亚nubia智能手机官网_files/v.js"></script><script type="text/javascript" async="" src="./收货地址——努比亚nubia智能手机官网_files/collect.js"></script><script src="./收货地址——努比亚nubia智能手机官网_files/tm.js" async=""></script><script type="text/javascript" async="" src="./收货地址——努比亚nubia智能手机官网_files/nua.js"></script><script async="" src="./收货地址——努比亚nubia智能手机官网_files/analytics.js"></script><script src="./收货地址——努比亚nubia智能手机官网_files/push.js"></script><script src="./收货地址——努比亚nubia智能手机官网_files/hm.js"></script><script>
var _hmt = _hmt || [];
;(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?ed03287223030af4802489c1974077c6";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
;(function(){
  var bp = document.createElement('script');
  bp.src = '//push.zhanzhang.baidu.com/push.js';
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(bp, s);
})();
;(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-37192071-11', 'auto');
  ga('send', 'pageview');

var _naq = _naq || [];
   _naq.push(['_setAccount', '32559']);
 
;(function() {
var ma = document.createElement('script'); ma.type = 'text/javascript'; ma.async = true;
ma.src = ('https:' == document.location.protocol ? 'https://static' :'http://static') + '.nubia.cn/stat/nua.js';
var s = document.getElementsByTagName('script')[0];   
    s.parentNode.insertBefore(ma, s);
})();

// user scripts
</script>
<script>!(function(a,b,c,d,e,f){var g="",h=a.sessionStorage,i="__admaster_ta_param__",j="tmDataLayer"!==d?"&dl="+d:"";
if(a[f]={},a[d]=a[d]||[],a[d].push({startTime:+new Date,event:"tm.js"}),h){var k=a.location.search,
l=new RegExp("[?&]"+i+"=(.*?)(&|#|$)").exec(k)||[];l[1]&&h.setItem(i,l[1]),l=h.getItem(i),
l&&(g="&p="+l+"&t="+ +new Date)}var m=b.createElement(c),n=b.getElementsByTagName(c)[0];m.src="//tag.cdnmaster.cn/tmjs/tm.js?id="+e+j+g,
m.async=!0,n.parentNode.insertBefore(m,n)})(window,document,"script","tmDataLayer","TM-398681","admaster_tm");
// user scripts
</script>

<script src="{{asset('/js/jquery2.min.js')}}" tag="user scripts"></script>
<!-- <script src="./收货地址——努比亚nubia智能手机官网_files/533a7b46150ba0176200026e.js" tag="user scripts"></script>
<script src="./收货地址——努比亚nubia智能手机官网_files/jquery.easing.js" tag="user scripts"></script> -->
<script src="{{asset('/js/nubia.main.js')}}" tag="user scripts"></script>
    

<script type="text/javascript">
/*
jQuery('.mz_footer-language').on({
    mouseover:function(){
        jQuery('#globalContainer').css('display','block');
        jQuery('.nubia-copyright span.nb-footer-func').addClass('lowindex');
    },
    mouseleave:function(){
        jQuery('#globalContainer').css('display','none');
        jQuery('.nubia-copyright span.nb-footer-func').removeClass('lowindex');
    }
})
*/
function clearForm() {
    jQuery('#feedbackQuestion').val('');
    jQuery('#feedbackQuestionUrl').val('');
    jQuery('#feedbackContact').val('');
    jQuery('#captcha_code').val('');
    jQuery('#errorTip').html('').hide();
}
function getFeedbackType() {
    jQuery.get('/problemreport.php?a=getFeedbackType', function(resp) {
        jQuery('#feedbackType').html(resp);
    });
}
function changeCaptcha() {
    jQuery('#feedbackCaptchaImg').attr('src', '/profile.php?a=captcha&ram=' + Math.random());
}
function feedbackShowBg() { 
    var bh = jQuery("body").height(); 
    var bw = jQuery("body").width(); 
    jQuery("#feedback_addip_zz").css({ 
        height:bh, 
        width:bw, 
        display:"block" 
    }); 
    jQuery("#feedback-dialog").show(); 
} 
//关闭灰色 jQuery 遮罩 
function feedbackCloseBg() { 
    jQuery("#feedback_addip_zz,#feedback-dialog").hide(); 
}
jQuery(".feedback_dialog_close").on("click",function(){
    feedbackCloseBg();
})
function showFeedBack() {
    jQuery('#nb-footer').css('z-index', 10000);
    jQuery('#nb-footer .nubia-copyright .nb-footer-func').css('z-index', 1);
    clearForm();
    getFeedbackType();
    changeCaptcha();
    var nav_user = navigator.userAgent;
    feedbackShowBg();
}
var captchaTag = false;
function checkFeedbackCaptcha() {
    var val = jQuery('#captcha_code').val();
    if ('' == val) {
        captchaTag = false;
        jQuery('#errorTip').html("验证码不能为空").show();
    } else {
        jQuery.ajax({
            type: "post",
            url: '/profile.php?a=ajaxCheckCaptcha',
            data: {captcha: val},
            async: false,
            success: function (r) {
                if (!r.result) {
                    jQuery('#errorTip').html('').hide();
                    captchaTag = true;
                } else {
                    captchaTag = false;
                    jQuery('#errorTip').html("错误的验证码，请重新输入").show();
                }
            }
        });
    }
}
jQuery('#captcha_code').on('blur',function(){
    checkFeedbackCaptcha();
});
jQuery('#submitQuestion').click(function(){
    var feedbackType = jQuery('#feedbackType').val();
    if (feedbackType == 0) {
        alert('请选择问题类型!');return false;
    }
    var feedbackQuestion = $('#feedbackQuestion').val();
    if (feedbackQuestion.length < 10) {
        alert('请输入问题描述（10-200个字）！');return false;
    }
    if (captchaTag == false) {
        alert('请输入正确的验证码！');return false;
    }
    var feedbackQuestionUrl = jQuery('#feedbackQuestionUrl').val();
    var feedbackContact = jQuery('#feedbackContact').val();
    var rule = /(^1[3|4|5|6|7|8]\d{9}$)|(^\++\d{2,}$)/;
    var rule2 = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
    if (feedbackContact.length > 60) {
        alert('联系方式长度不能超过60个字符！');return false;
    }
    if (!rule.test(feedbackContact) && !rule2.test(feedbackContact)) {
        alert('联系方式请输入正确格式的手机号码或邮箱！');
        return false;
    }

    var captcha = jQuery('#captcha_code').val();
    jQuery.post('/problemreport.php?a=commit', 
        {
            feedbackType:feedbackType,
            feedbackQuestion:feedbackQuestion,
            feedbackQuestionUrl:feedbackQuestionUrl,
            contact:feedbackContact,
            captcha:captcha
        },
        function(resp) {
            alert(resp.message);
            if (resp.result == 0) {
                feedbackCloseBg();
            }
        }
    );
});
function countWord() {
    var qe = jQuery('#feedbackQuestion');
    var qLength = qe.val().length;
    var maxLimit = 200;
    if (qLength > maxLimit) {
        qe.val(qe.val().substr(0, maxLimit));
    }
    var wordLeft = maxLimit - qLength;
    if (wordLeft < 0) {
        wordLeft = 0;
    }
    jQuery('#wordLeft').html(wordLeft);
}

function changelanguage(language) {
    return false;
    document.cookie = 'DOMAINLANGUAGE' + "="+ escape (language) + ";expires=0" + ";path=/;domain=nubia.com";
    if (language == 'es') {
        location.href = 'http://es.nubia.com';
    } else if (language == 'en') {
        location.href = 'http://en.nubia.com';
    }
}



    function online_ztehn(){
        var url = 'http://livechat1.zte.com.cn/looyu/chat/p.do?c=1&f=61';
        var p = "height=460,width=690,directories=no,location=no,menubar=no,resizeable=no,status=no,toolbar=no,top=100,left=200";
        try{
            var cw = window.open(url,'chat',p);cw.focus();
        }catch(e){
         
        }
    }



    jQuery(function($){
        $('.nb-weixin-ico').on('click',function(){
            $('.nb-footer-wx-layer').toggle();
        })
        //微信二维码图
        $('#weixinimg').hover(function(){$('.weixinm').show();},function(){$('.weixinm').hide();})
        // 导航下拉
        $(".phonepage,#phone-downmenu").hover(function(){$("#phone-downmenu").show();},function(){$("#phone-downmenu").hide();})
        $(".bbs,#bbs-downmenu").hover(function(){$("#bbs-downmenu").show();},function(){$("#bbs-downmenu").hide();})
        // 返回顶部
        $(function(){
                //当滚动条的位置处于距顶部100像素以下时，跳转链接出现，否则消失
                $(function () {
                    $(window).scroll(function(){
                        if ($(window).scrollTop()>100){
                            $("#back-to-top").fadeIn(300);
                        }
                        else
                        {
                            $("#back-to-top").fadeOut(300);
                        }
                    });
                    //当点击跳转链接后，回到页面顶部位置
                    $("#top").click(function(){
                        $('body,html').animate({scrollTop:0},300);
                        return false;
                    });
                });
            });
    })


        window.addEvent("domready", function() {
            if($type($('region'))) {
                var firstSel = $('region').getElement('select').addEvent('change', changeRegion.bind($('region').getElement('select')));
                
                if (firstSel.get('selectedIndex') > 0) {
                    firstSel.fireEvent('change');
                }

                if($type($('region').getElement('input[type=button]'))) {
                    $('region').getElement('input[type=button]').addEvent('click', function(){
                        $('region').getElement('select').setStyle('display', 'inline');
                        $('region').getElement('span').hide();
                        this.hide();
                    });
                }
            }
        });

        function regionShow() {

            $('region').getElement('select').setStyle('display', 'inline');
            $('region').getElement('span').hide();
            $('region').getElement('input[name=region_edit]').hide();
            //obj.hide();//ie8不认从regionShow传传过来的obj，上边是替代方法
            $('region').getElement('select').addEvent('change', changeRegion.bind($('region').getElement('select')));
        }

        function changeRegion() {
            
            this.getAllNext('select').dispose();
            $('region').getElement('input[name=regionId]').set('value', this.get('value'));

            var names = new Array();
            $('region').getElements('select').each(function(item){
                if (item.selectedIndex == 0) {
                    return;
                }
                var rid = item.get('value');
                names.push(item.getElement('option[value=' + rid + ']').get('text'));
            });

            $('region').getElement('input[name=regionName]').setProperty('value', names.join("\ "));
            var _self = this;
            var url = '';
            if (window.location.href.indexOf('/admin/') > 1) {
                if ($('cityOptions')) {
                    url = 'region.php?a=getCityOptions';
                } else {
                    url = 'region.php?a=getOptions';
                }
                
            } else {
                url = 'memberaddress.php?a=getOptions';
            }
            var regiontempid = parseInt(this.get('value'));
            new Request.JSON({
                url: url,
                async: false,
                onComplete: function(data){
                    if(data && $type(data.result) == 'object') {
                        var select_con = new Element('select');
                        select_con.addClass('select validate-custom-required emptyValue:0');
                        new Element('option', {'value':0, 'text':'请选择...'}).inject(select_con, 'top');

                        for(key in data.result) {
                            new Element('option', {'value':key, 'text':data.result[key]}).inject(select_con);
                        }
                        if (regiontempid >= 2737 && regiontempid <= 2817) {
                            $("regiontip").setStyle('display', 'inline');
                        } else {
                            $("regiontip").setStyle('display', 'none');
                        }
                        select_con.addEvent('change', changeRegion.bind(select_con));
                        select_con.inject(_self, 'after');
                    }
                }
            }).get({'region':this.get('value')});
        }
        window.addEvent('domready', function() {
            var validator = new Form.Validator.Inline('addressForm', {
                'scrollToErrorsOnChange': false,
                'scrollToErrorsOnSubmit': false
            });
            validator.add('requiredMobile', {
                errorMsg: '电话和手机请至少填写一项',
                test: function(field) {
                    if (field.value == '' && $('phone').value == '') {
                        return false;
                    }
                    return true;
                }
            })
        })
    </script>


<!-- Elapsed time: 42.09 ms, Memory amount: 1.77 mb --><script type="text/javascript" id="">var _smq = _smq || []; _smq.push(['_setAccount', '33a5ac6', new Date()]); _smq.push(['pageview']); (function() { var sm = document.createElement('script'); sm.type = 'text/javascript'; sm.async = true; sm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'site.cdnmaster.cn/sitemaster/collect.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sm, s); })(); </script></body></html>